package org.abc.fund.repository.factorRepository;

import org.abc.fund.entity.factorEntity.DerivedFactorData;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface DerivedFactorDataRepository extends JpaRepository<DerivedFactorData, Long> {

    Optional<DerivedFactorData> findTopByTypeAndFundCodeOrderByLastCalculationTimeDesc(String type, String fundCode);

}
